-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix icon names #17391
fix icon names #17391
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [ce6f6a9]
Page Load Metrics (1265 ± 99 ms)
Bundle size diffs
|
sourceCopied | ||
? ICON_NAMES.COPY_SUCCESS_FILLED | ||
: ICON_NAMES.COPY_FILLED | ||
sourceCopied ? ICON_NAMES.COPY_SUCCESS : ICON_NAMES.COPY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressCopied | ||
? ICON_NAMES.COPY_SUCCESS_FILLED | ||
: ICON_NAMES.COPY_FILLED | ||
addressCopied ? ICON_NAMES.COPY_SUCCESS : ICON_NAMES.COPY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -31,7 +31,7 @@ export const SnapDelineator = ({ snapName, children }) => { | |||
paddingTop={1} | |||
paddingBottom={1} | |||
> | |||
<Icon name="snaps-filled" color={COLORS.INFO_DEFAULT} size={SIZES.SM} /> | |||
<Icon name="snaps" color={COLORS.INFO_DEFAULT} size={SIZES.SM} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -114,7 +114,7 @@ import { BannerBase, Icon, ICON_NAMES } from '../../component-library'; | |||
|
|||
<BannerBase | |||
title="Start accessory demo" | |||
startAccessory={<Icon name={ICON_NAMES.INFO_FILLED} size={SIZES.LG} />} | |||
startAccessory={<Icon name={ICON_NAMES.INFO} size={SIZES.LG} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -68,7 +68,7 @@ export const BannerBase = ({ | |||
{onClose && ( | |||
<ButtonIcon | |||
className="mm-banner-base__close-button" | |||
iconName={ICON_NAMES.CLOSE_OUTLINE} | |||
iconName={ICON_NAMES.CLOSE} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -92,7 +92,7 @@ DefaultStory.args = { | |||
title: 'Title is sentence case no period', | |||
children: "Description shouldn't repeat title. 1-3 lines.", | |||
actionButtonLabel: 'Action', | |||
startAccessory: <Icon name={ICON_NAMES.INFO_FILLED} size={SIZES.LG} />, | |||
startAccessory: <Icon name={ICON_NAMES.INFO} size={SIZES.LG} />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -165,5 +165,5 @@ StartAccessory.args = { | |||
title: 'Start accessory demo', | |||
children: | |||
'The info icon on the left is passed through the startAccessory prop', | |||
startAccessory: <Icon name={ICON_NAMES.INFO_FILLED} size={SIZES.LG} />, | |||
startAccessory: <Icon name={ICON_NAMES.INFO} size={SIZES.LG} />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -225,7 +225,7 @@ export default function PrivacySettings() { | |||
e.preventDefault(); | |||
dispatch(showModal({ name: 'ONBOARDING_ADD_NETWORK' })); | |||
}} | |||
icon={<Icon name="add-outline" marginRight={2} />} | |||
icon={<Icon name="add" marginRight={2} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds ready [ababf73]
Page Load Metrics (1337 ± 135 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not too much work can we update them all to use the ICON_NAMES
object?
Explanation
A recent change to our list of Icons removed the term
filled
andoutline
, but some Icons were implemented before the recent PR. This is a hotfix for those icons.Screenshots/Screencaps
See comments below
Before
See comments below
After
See comments below
Manual Testing Steps
yarn jest ui/components/component-library
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.